package com.kedi.welfarecenter.service.impl;

import java.util.List;
import java.util.Map;

import com.kedi.welfarecenter.write.dao.mapper.WriteJobMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kedi.welfarecenter.read.dao.mapper.JobMapper;
import com.kedi.welfarecenter.service.WelfareService;
import org.springframework.transaction.annotation.Transactional;

/**
 * 
 *
 * @ClassName	长着就业
 * @author: 	陈辽逊
 * @date: 		2019/7/26	14:44
 */
@Service
public class WelfareServiceImpl implements WelfareService {
	@Autowired
	JobMapper jobMapper;

	@Autowired
	WriteJobMapper writeJobMapper;

	@Override
	public List<Map> getJobList() {
		return jobMapper.findList();
	}

	@Override
	public Map getJobDetail(Integer id) {
		return jobMapper.findDetail(id);
	}

	@Override
	public Map<String, Object> findPhone(Integer p_user_id) {
		return jobMapper.findPhone(p_user_id);
	}

	@Override
	public Integer insertdeliver(Map map) {
		return writeJobMapper.insertdeliver(map);
	}

	@Override
	public Map finddeliverid(Map map) {
		return jobMapper.finddeliverid(map);
	}


}
